import Vue from 'vue'
import App from './App.vue'
import {
  Row,
  Button,
  Container,
  Main,
  Aside,
  Submenu,
  Menu,
  MenuItem,
  Dialog,
  Input,
  Form,
  FormItem,
  Table,
  TableColumn,
  MessageBox,
  Message,
  Pagination,
  Select,
  Option,
  Checkbox,
} from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import router from '../router';
import http from 'axios'
// import './api/mock'

Vue.config.productionTip = false
Vue.use(Row)
Vue.use(Button)
Vue.use(Container)
Vue.use(Main)
Vue.use(Aside)
Vue.use(Submenu)
Vue.use(Menu)
Vue.use(MenuItem)
Vue.use(Dialog)
Vue.use(Input)
Vue.use(Form)
Vue.use(FormItem)
Vue.use(Table)
Vue.use(TableColumn)
Vue.use(Pagination)
Vue.use(Select)
Vue.use(Option)
Vue.use(Checkbox)
Vue.prototype.$confirm=MessageBox.confirm;
Vue.prototype.$message = Message
Vue.prototype.$http = http

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
